Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the deprecation status of the datetime library usage #157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

olamidepeterojo
Copy link

Fixes issue #151

@gridhead
Copy link
Member

@olamidepeterojo Thanks for the pull request. Could you please fix the tests associated with this pull request while you are it?

Copy link
Member

@gridhead gridhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olamidepeterojo Thanks for the pull request. Could you please fix the tests associated with this pull request while you are it?

Copy link
Member

@gridhead gridhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request is incomplete.

The deprecation status has not been lifted from the following sections.

https://github.com/olamidepeterojo/pagure-exporter/blob/924538f81ed9fdf879a327d61961fcaa730d1712/pagure_exporter/work/tkts.py#L155-L160

                dateinfo=datetime.utcfromtimestamp(standard.timedata).strftime("%c"),
                mo=datetime.utcfromtimestamp(standard.timedata).strftime("%b").lower(),
                dd=datetime.utcfromtimestamp(standard.timedata).strftime("%d"),
                yy=datetime.utcfromtimestamp(standard.timedata).strftime("%Y"),
                hh=datetime.utcfromtimestamp(standard.timedata).strftime("%H"),
                mm=datetime.utcfromtimestamp(standard.timedata).strftime("%M"),

https://github.com/olamidepeterojo/pagure-exporter/blob/924538f81ed9fdf879a327d61961fcaa730d1712/test/test_unit_gitlab.py#L97

                "comment": f"This test comment with broken links was created on {datetime.utcfromtimestamp(int(time())).strftime('%c')}.",  # noqa: E501

Amend the existing commit to include the suggested changes and let me know once this pull request is ready for another round of reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants